<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>normalize.css 源代码学习</title>
    <!--
    <link rel="stylesheet" href="../../libs/bootstrap/4.0.0-beta.3/bootstrap.css">
    -->
    <link rel="stylesheet" href="../../libs/bootstrap/4.0.0-beta.3/bootstrap.css">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>

        html,body,div,p{
            box-sizing: border-box;
        }

        body{
            background-color:aqua;
            width:100%;
            height:100%;
        }

        .container {
            height: 100%;
            width: 400px;
            background-color: beige;
        }

        .box {
            height: 200px;
            width: 200px;
            background-color: brown
        }

        .sup{
            vertical-align: baseline;
            line-height: 0;
            position: relative;
            top: -0.5em;
        }
    </style>
    <script>
        var msgs=[];
        function myload(){
            console.log('loading...');
            const log_el = document.getElementById('log');
            msgs.push(document.body.style)
            log_el.innerHTML = msgs;
        }
        window.onload = myload;
    </script>
</head>

<body>
    <div class='container'>
        <div class="box">
            <h1>s</h1>
            <p>张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三张三</p>


        </div>
        <hr>
        <div class="box">
            <p>s</p>
        </div>
        <div>
            <pre id='log'>

            </pre>
        </div>
    </div>
</body>

</html>